package com.ruoyi.neusoft.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.neusoft.mapper.AiIdentifyModelClassifyTMapper;
import com.ruoyi.neusoft.domain.AiIdentifyModelClassifyT;
import com.ruoyi.neusoft.service.IAiIdentifyModelClassifyTService;
import com.ruoyi.common.core.text.Convert;

/**
 * AI模型训练分类Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-17
 */
@Service
public class AiIdentifyModelClassifyTServiceImpl implements IAiIdentifyModelClassifyTService 
{
    @Autowired
    private AiIdentifyModelClassifyTMapper aiIdentifyModelClassifyTMapper;

    /**
     * 查询AI模型训练分类
     * 
     * @param classifyUuid AI模型训练分类主键
     * @return AI模型训练分类
     */
    @Override
    public AiIdentifyModelClassifyT selectAiIdentifyModelClassifyTByClassifyUuid(Long classifyUuid)
    {
        return aiIdentifyModelClassifyTMapper.selectAiIdentifyModelClassifyTByClassifyUuid(classifyUuid);
    }

    /**
     * 查询AI模型训练分类列表
     * 
     * @param aiIdentifyModelClassifyT AI模型训练分类
     * @return AI模型训练分类
     */
    @Override
    public List<AiIdentifyModelClassifyT> selectAiIdentifyModelClassifyTList(AiIdentifyModelClassifyT aiIdentifyModelClassifyT)
    {
        return aiIdentifyModelClassifyTMapper.selectAiIdentifyModelClassifyTList(aiIdentifyModelClassifyT);
    }

    /**
     * 新增AI模型训练分类
     * 
     * @param aiIdentifyModelClassifyT AI模型训练分类
     * @return 结果
     */
    @Override
    public int insertAiIdentifyModelClassifyT(AiIdentifyModelClassifyT aiIdentifyModelClassifyT)
    {
        return aiIdentifyModelClassifyTMapper.insertAiIdentifyModelClassifyT(aiIdentifyModelClassifyT);
    }

    /**
     * 修改AI模型训练分类
     * 
     * @param aiIdentifyModelClassifyT AI模型训练分类
     * @return 结果
     */
    @Override
    public int updateAiIdentifyModelClassifyT(AiIdentifyModelClassifyT aiIdentifyModelClassifyT)
    {
        return aiIdentifyModelClassifyTMapper.updateAiIdentifyModelClassifyT(aiIdentifyModelClassifyT);
    }

    /**
     * 批量删除AI模型训练分类
     * 
     * @param classifyUuids 需要删除的AI模型训练分类主键
     * @return 结果
     */
    @Override
    public int deleteAiIdentifyModelClassifyTByClassifyUuids(String classifyUuids)
    {
        return aiIdentifyModelClassifyTMapper.deleteAiIdentifyModelClassifyTByClassifyUuids(Convert.toStrArray(classifyUuids));
    }

    /**
     * 删除AI模型训练分类信息
     * 
     * @param classifyUuid AI模型训练分类主键
     * @return 结果
     */
    @Override
    public int deleteAiIdentifyModelClassifyTByClassifyUuid(Long classifyUuid)
    {
        return aiIdentifyModelClassifyTMapper.deleteAiIdentifyModelClassifyTByClassifyUuid(classifyUuid);
    }
}
